<?php
require_once 'simpletest/unit_tester.php';
require_once 'simpletest/reporter.php';
require_once __DIR__ . '/../Request/Csv2HttpRequest.php';

class Csv2HttpRequestTest extends UnitTestCase
{
	public function test1100()
	{
		$obj = new Lib_Request_Csv2HttpRequest(__DIR__ . '/data/Csv2HttpRequestTest.csv');
		$RET = $obj->get('POS4');
		$this->assertEqual($RET, 'MD');
	}

	public function test1200()
	{
		$obj
		= new Lib_Request_Csv2HttpRequest(
				__DIR__ . '/data/Csv2HttpRequestTest.csv',
				FALSE);
		$RET = $obj->getHash();
		$this->assertEqual($RET['POS4'], 'MD');
	}
}